package ooday01.homework;

public class StudentTest {
    public static void main(String[] args) {
        //第一遍：
     /*
        //访问：无参
        Student st  = new Student();
        st.name="小明";
        st.age = 22;
        st.className="jsd2404";
        st.id="001";
        st.study();
        st.sayHi();
        st.playWith("光头强");

        //有参:
        Student s = new Student("小光",21,"jsd2404","002");
        s.study();
        s.sayHi();
        s.playWith("熊大");

      */

        //第二遍：
        //访问：无参
        Student st  = new Student();
        st.name="小明";
        st.age = 22;
        st.className="jsd2404";
        st.id="001";
        st.study();
        st.sayHi();
        st.playWith("光头强");

        //有参:
        Student s = new Student("小光",21,"jsd2404","002");
        s.study();
        s.sayHi();
        s.playWith("熊二");

    }
}
